Robotics And Machine ANalytics Laboratory (RAMAN LAB) Malaviya National Institute of Technology Jaipur
Home

Orientation Estimation from 9-DoFs Inertial Measurement Units (IMUs)

An inertial measurement unit (IMUs) is an electronic component to measure the accelerations, angular velocity, and strength/direction of magnetic fields. IMUs are embedded in the inertial navigation systems. It utilizes the raw information from the IMUs to determine the position, angular/linear velocities, and attitude with respect to a global reference frame. Therefore, inertial navigation systems integrated with IMUs become the pivotal component for autonomous control and navigation in robotics. It has found many applications in the commercial and defence industry. Common applications include the determination of the direction and tracking motion in consumer electronics such as mobiles, virtual reality, and augmented reality. For industrial use, it can help the robots, such as drones, humanoids, vehicles, etc., for the logistic support. It includes the miniature microelectromechanical systems (MEMS) with three components (a) accelerometer, (b) gyroscope, and (c) magnetometer.

  • Accelerometer is a compact device that is used to measure acceleration. Whenever the robot experience motion from standstill to velocity. It uses the microscopic crystal which goes under the tension whenever the vibration occurs. This tension in the crystal creates a voltage that gives the acceleration reading. It can be broadly divided into (a) mechanical, (b) solid-state, and (c) MEMS accelerometers.
  • Gyroscope is an instrument that consists of three gimbals to provide the support for the wheel which is mounted in it. It uses gravity for the evaluation of orientation. It can be broadly divided into (a) mechanical, (b) optical, and (c) MEMS. Since MEMS-based gyroscope is cheaper as compared to others. As by IEEE, a vibrating structure gyroscope is defined as the Coriolis vibratory gyroscope, which converts the vibration in structure to the rate of rotation. The basic underlying physics behind these devices is the Coriolis effect.
  • Magnetometer is used to measure the strength/direction of the magnetic field, which can be used to evaluate the direction of the robot with respect to a magnetic field. It provides the yaw measurement.

  • Hardware implementation of 9-DoFs IMU:

    All the experiments are performed with Arduino UNO board and 9-DoFs IMUs.

    Task I: Connection diagram of Arduino UNO and MEMS Sensor.

    Connect the Arduino pin A4 and A5 to the SDA and SCL of the sensor. Also, connect the 3.3 volts and GND pin from the board to the Vin pin and GND pin of the sensor. The complete circuitry is shown in Fig. 1.




    Fig. 1. The circuitry of the Arduino UNO board with MEMS Sensor

    Task II: Bias estimation and Calibration of the Sensor.

    This is an important step because if the calibration of the sensor is not properly done, then the reading from the sensor will have bias and can result in inaccurate results. Likewise, a constant bias in acceleration can lead to a linear error and quadratic error in the velocity and distance estimation respectively. After calibration, there is noise present in measurement as shown in Fig. 2, which can be approximated by gaussian.



    Fig. 2a.



    Fig. 2b.



    Fig. 2c.


    Fig. 2. Histogram for Accelerometer Measurement after calibration (Not normalized).

    Task III: Estimation.

    (a) Tilt estimation (using only accelerometer measurement):

    A schematic diagram of the autonomous vehicle is shown in Fig. 3. Here, the vehicle is locomoted on the sloppy surface with a “φ” pitch angle. The mathematical expression for pitch evaluation is shown in Fig. 3. Likewise, the roll angle can also be evaluated by replacing the a_x by a_y. Fig. 4 presents the respective roll and pitch angle. However, it is also depicted from animations (right side) that both angles are highly sensitivities for vibrations (which are common events in nature). A low pass filter can be employed, which can partially solve the sensitivity problem.



    Fig. 3. Schematic Diagram of Autonomous Mobile Vehicle.


    https://drive.google.com/file/d/1MumpV97Glm3tEOk9l3Z8ANr-3fT-Zmi7/view?usp=sharing

    Fig. 4a.


    https://drive.google.com/file/d/1V40wEjucHXPO9K1QDQfWFYvkD-PHCDRQ/view?usp=sharing

    Fig. 4b.


    Fig. 4. Animation of Tilt Estimation from an Accelerometer ((a) Tilt in terms of Pitch and Roll angle and (b) Impact of Vibration on both Roll and Pitch)


    https://drive.google.com/file/d/1V40wEjucHXPO9K1QDQfWFYvkD-PHCDRQ/view?usp=sharing

    Fig. 4b.


    https://drive.google.com/file/d/1RLQdjcID1UjPxU7TuaJpjPpYl0u3ZQtj/view?usp=sharing

    Fig. 5a.


    https://drive.google.com/file/d/1VGRGoYP_5EifwCJoJLmlHNXP9fG9un_X/view?usp=sharing

    Fig. 5b.


    Fig. 5. Animation of Tilt Estimation from an Accelerometer with Low-Pass Filter ((a) Pitch and (b) Roll)

    (b) Tilt estimation (using only gyroscope measurement):

    Roll and pitch angle can be evaluated using the gyroscope, an advantage of using gyro reading is that it is not susceptible to vibrations and provide a faster response as compared to the low-pass filter. Fig. 6. shows the animation for the tilt estimation based on the gyroscope readings. It depicts that the gyroscope is not impacted by vibrations, however, there will be drift in measurement in the long term. It is because of the accumulation of errors in measurements. A high pass filter can be used to solve this problem partially.


    https://drive.google.com/file/d/1UaGr6YWTngMvKkBLVwgSU2pOtTjLl07A/view?usp=sharing

    Fig. 6a.


    https://drive.google.com/file/d/15PMYtLqhrbL7cL-pY58IuJuRyVco78bU/view?usp=sharing

    Fig. 6b.


    Fig. 6. Animation of Tilt Estimation from Gyroscope ((a) Pitch and Roll, and (b) Drift)

    (c) Accurate and stable tilt estimation using the Complementary filter:

    Since the pitch and roll estimation from the accelerometer measurement is susceptible to vibrations (Long term acceptance) whereas estimation from the gyroscope measurement leads to drifting (Short term acceptance). Therefore, the fusion of both approaches can lead to a more appropriate result as shown in Fig.7.


    https://drive.google.com/file/d/1k7mznNbNP-lpDw1khPE_AHz4Fn7ayJG9/view?usp=sharing

    Fig. 7. Animation for Tilt Estimation using the Complementary filter

    Overall comparison of all techniques for tilt measurement:

    Fig. 8 shows the comparative analysis of all techniques for the tilt estimation. It shows that pitch and roll measured from the accelerometer and gyroscope separately provide the vibrations/overshoot and drifting. Then the low-pass filter shows the better utility regarding vibrations. Lastly, the complementary filter is presented which mostly address all issue of the above techniques. Whenever there is a sudden change in tilt after remaining constant at some position. There is a sudden overshoot as shown in the last part of an animation. Therefore, it is recommended to use these techniques according to the application. Additionally, it is recommended to use the higher-level filter such as Kalman filter, and Bayesian filter for a good estimation of these quantities.


    https://drive.google.com/file/d/1xxrRNPUq4aKe2C29CmTZ-vOhnFNXnL-S/view?usp=sharing

    Fig. 8. Animation for Tilt Estimation for all Techniques

    (d) Estimation of Yaw:

    It is noted from the above section that only pitch and roll are estimated. In order to estimate the yaw movement, magnetometer measurements are utilized as shown in Fig. 9. Since the Yaw angle helps the robots to navigate into the environment.


    https://drive.google.com/file/d/1mmc28K1CwvYpYaWmji12YdZhXh98_Kls/view?usp=sharing

    Fig. 9. Animation for Yaw Estimation

    Future directions:

    It is noted after the experiment that the orientation estimation is still affected by the noise, bias, and offset in the sensor. Therefore, it is recommended to use advanced filtering approaches such as the Kalman filter and Hidden Markov model.

    MARCH 13, 2022 BHARAT SINGH

    Go to Top